package com.ddf.publics.config;

import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 * Created by Zero on 2020-6-22 19:22
 */

public class Utill {

    /**
     * @return 距离明天还有多少秒
     */
    public static int TodaySeconds(){
        Calendar curDate = Calendar.getInstance();
        Calendar tommorowDate = new GregorianCalendar(curDate
                .get(Calendar.YEAR), curDate.get(Calendar.MONTH), curDate
                .get(Calendar.DATE) + 1, 0, 0, 0);
        return (int)(tommorowDate.getTimeInMillis() - curDate .getTimeInMillis()) / 1000;
    }

}
